<%--
  Created by IntelliJ IDEA.
  User: alexz
  Date: 14-10-24
  Time: 下午6:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsf/core" %>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<html>
<head>
    <title>JSF - Welcome</title>
</head>
<body>
<h1>welcome to login</h1>
<c:view>
    <h:form>
        <table>
            <tr>
                <td><h:outputLabel value="Username:"/></td>
                <td><h:inputText value="#{user.username}"/></td>
            </tr>
            <tr>
                <td><h:outputLabel value="Password:"/></td>
                <td><h:inputSecret value="#{user.password}"/></td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <h:commandButton action="#{loginController.login}" value="Login"/>
                </td>
            </tr>
        </table>
    </h:form>
</c:view>
</body>
</html>